home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / anim / standidentify.scr < prev    next >
Encoding:
Text File  |  2002-10-21  |  883 b   |  40 lines

  1. //-------
  2. // standidentify.scr
  3. //-------
  4.  
  5. Start:
  6.     //println "Entering standshock.scr"
  7.     waitexec "anim/default_inithandler.scr"
  8.  
  9.     // Initialise say manager
  10.     self waitthread anim/SayManager.scr::Init
  11.  
  12.     self.blendtime = 0.25
  13.     //need to take into account current position here... will do it later...
  14.     
  15. //    println "The enemy!  Attack!"
  16.     if (self.team == "german")
  17.     {
  18.         self thread anim/SayManager.scr::SayManager ("den_head_attack_" + self.voicetype) 5
  19.     }
  20.     else
  21.     {
  22.         self thread anim/SayManager.scr::SayManager ("dfr_head_attack_" + self.voicetype) 5
  23.     }
  24.  
  25.     switch (self.weapongroup)
  26.     {
  27.         bazooka:
  28.             self setmotionanim (rifle_stand_alert_legs)
  29.             self setupperanim (bazooka_stand_alert)
  30.             self waittill upperanimdone
  31.             break
  32.  
  33.         default:
  34.             self setmotionanim (self.weapongroup + "_stand_identify")
  35.             self waittill flaggedanimdone
  36.             break
  37.     }
  38.  
  39. end
  40.